var feathers = require('feathers');
var app      = feathers();
var io       = require('socket.io').listen( app.listen(1337));


app.use(feathers.static(__dirname + '/public'));

app.configure(feathers.socketio(function(io) {
  io.on('connection', function(socket) {
    socket.emit('news', { hello: 'world' });
  });
}));